<script setup lang="ts">
let userName = defineModel('userName')
let userEmail = defineModel('userEmail')
let userHobby = defineModel('userHobby')



function modify(){
    console.log(userName.value)
    userName.value = 'Amy'
    userEmail.value = '123'
    userHobby.value = '唱歌'
}
</script>

<template>
    <button @click="modify">修改</button>
</template>

<style scoped>

</style>
